package org.example.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName current_data
 */
@TableName(value ="current_data")
public class CurrentData implements Serializable {
    /**
     * 
     */

    private String deviceIdentifier;

    /**
     * 
     */

    private String serviceId;

    /**
     * 
     */
    private Date updateTime;

    /**
     * 
     */
    private Date eventTime;

    /**
     * 
     */
    private String gatewayIdentifier;

    /**
     * 
     */
    private Object bodyData;

    /**
     * online offline 状态
     */
    private String status;

    /**
     * 
     */
    private String nodeId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public String getDeviceIdentifier() {
        return deviceIdentifier;
    }

    /**
     * 
     */
    public void setDeviceIdentifier(String deviceIdentifier) {
        this.deviceIdentifier = deviceIdentifier;
    }

    /**
     * 
     */
    public String getServiceId() {
        return serviceId;
    }

    /**
     * 
     */
    public void setServiceId(String serviceId) {
        this.serviceId = serviceId;
    }

    /**
     * 
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 
     */
    public Date getEventTime() {
        return eventTime;
    }

    /**
     * 
     */
    public void setEventTime(Date eventTime) {
        this.eventTime = eventTime;
    }

    /**
     * 
     */
    public String getGatewayIdentifier() {
        return gatewayIdentifier;
    }

    /**
     * 
     */
    public void setGatewayIdentifier(String gatewayIdentifier) {
        this.gatewayIdentifier = gatewayIdentifier;
    }

    /**
     * 
     */
    public Object getBodyData() {
        return bodyData;
    }

    /**
     * 
     */
    public void setBodyData(Object bodyData) {
        this.bodyData = bodyData;
    }

    /**
     * online offline 状态
     */
    public String getStatus() {
        return status;
    }

    /**
     * online offline 状态
     */
    public void setStatus(String status) {
        this.status = status;
    }

    /**
     * 
     */
    public String getNodeId() {
        return nodeId;
    }

    /**
     * 
     */
    public void setNodeId(String nodeId) {
        this.nodeId = nodeId;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CurrentData other = (CurrentData) that;
        return (this.getDeviceIdentifier() == null ? other.getDeviceIdentifier() == null : this.getDeviceIdentifier().equals(other.getDeviceIdentifier()))
            && (this.getServiceId() == null ? other.getServiceId() == null : this.getServiceId().equals(other.getServiceId()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getEventTime() == null ? other.getEventTime() == null : this.getEventTime().equals(other.getEventTime()))
            && (this.getGatewayIdentifier() == null ? other.getGatewayIdentifier() == null : this.getGatewayIdentifier().equals(other.getGatewayIdentifier()))
            && (this.getBodyData() == null ? other.getBodyData() == null : this.getBodyData().equals(other.getBodyData()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getNodeId() == null ? other.getNodeId() == null : this.getNodeId().equals(other.getNodeId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getDeviceIdentifier() == null) ? 0 : getDeviceIdentifier().hashCode());
        result = prime * result + ((getServiceId() == null) ? 0 : getServiceId().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getEventTime() == null) ? 0 : getEventTime().hashCode());
        result = prime * result + ((getGatewayIdentifier() == null) ? 0 : getGatewayIdentifier().hashCode());
        result = prime * result + ((getBodyData() == null) ? 0 : getBodyData().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getNodeId() == null) ? 0 : getNodeId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", deviceIdentifier=").append(deviceIdentifier);
        sb.append(", serviceId=").append(serviceId);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", eventTime=").append(eventTime);
        sb.append(", gatewayIdentifier=").append(gatewayIdentifier);
        sb.append(", bodyData=").append(bodyData);
        sb.append(", status=").append(status);
        sb.append(", nodeId=").append(nodeId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}